package view;

import java.util.Date;

import logic.*;

public class MainClass {
	public static void main ( String args[]){
            CardDataBase cardDataBase = new CardDataBase();
            cardDataBase.setPassPrice(2.00);
            Operator operator = new Operator( cardDataBase );
            operator.operatorSells();
            
            MetroCard card00 = new MetroCardPassLimit(cardDataBase, CardPassLimit.PASSES5, CardType.STUDENT);
            card00.setCardId(123);
            MetroCard card01 = new MetroCardPassLimit(cardDataBase, CardPassLimit.PASSES10, CardType.NORMAL);
            card01.setCardId(7123);
            MetroCard card02 = new MetroCardPassLimit(cardDataBase, CardPassLimit.PASSES5, CardType.SCHOOL);
            card02.setCardId(175);
            MetroCard card03 = new MetroCardRechargeable(20.0, cardDataBase);
            card03.setCardId(489);
            
            MetroCard card1 = new MetroCardPassLimit(cardDataBase, CardPassLimit.PASSES5, CardType.STUDENT);
            card1.setCardId(1);
            MetroCard card2 = new MetroCardPassLimit(cardDataBase, CardPassLimit.PASSES5, CardType.SCHOOL);
            card2.setCardId(4);
            
            TurniquetteInterface turniquette = new Turniquette(cardDataBase);
            turniquette.canPass(card00);
            turniquette.canPass(card01);
            turniquette.canPass(card02);
            turniquette.canPass(card03);
            turniquette.canPass(card1);
            turniquette.canPass(card2);
            
            
            System.out.println(turniquette.print());
            
            System.out.println(turniquette.print(CardType.STUDENT));
            
	}
}
